﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true" CodeBehind="WebForm15.aspx.cs" Inherits="Design.WebForm15" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style32
        {
            width: 100%;
        }
        .style33
        {
            width: 491px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style32">
        <tr>
            <td class="style33">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style33">
                <asp:ListView ID="ListView1" runat="server" DataSourceID="ObjectDataSource1">
                    <EmptyDataTemplate>
                        <table runat="server" 
                            style="">
                            <tr>
                                <td>
                                    No data was returned.</td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <ItemTemplate>
                        <tr style="">
                            <td>
                                <asp:Image ID="image" runat="server" ImageUrl='<%# Eval("image") %>' Width="60" height="60" />
                            </td>
                            <td>
                                <asp:Label ID="Equip_IDLabel" runat="server" value='<%# Eval("Equip_ID") %>' />
                            </td>
                            <td>
                                <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
                            </td>
                            <td>
                                <asp:Label ID="PriceLabel" runat="server" Text='<%# Eval("Price") %>' />
                            </td>
                            <td>
                                <asp:Label ID="DescriptionLabel" runat="server" 
                                    Text='<%# Eval("Description") %>' />
                            </td>
                            <td>
                                <asp:Button ID="btnAddToCart" runat="server" 
                                    value='<%# Eval("Equip_ID") %>' Text="Add To Cart" CommandArgument='<%# Eval("Equip_ID") %>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <LayoutTemplate>
                        <table runat="server">
                            <tr runat="server">
                                <td runat="server">
                                    <table ID="itemPlaceholderContainer" runat="server" border="0" 
                                        style="">
                                        <tr runat="server" style="">
                                            <th id="Th1" runat="server">
                                                image</th>
                                            <th runat="server">
                                                Name</th>
                                            <th runat="server">
                                                Price</th>
                                            <th runat="server">
                                                Description</th>
                                        </tr>
                                        <tr ID="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr runat="server">
                                <td runat="server" 
                                    style="">
                                    <asp:DataPager ID="DataPager1" runat="server">
                                        <Fields>
                                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                                ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                            <asp:NumericPagerField />
                                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                                                ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                        </Fields>
                                    </asp:DataPager>
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                    
                </asp:ListView>

                <asp:Label ID="lblid" runat="server"></asp:Label>
            </td>
            <td>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="get_equipment_even_by_id" TypeName="BusinessLayer.UpdateEquip">
                </asp:ObjectDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
